Linear Algebra Examples

Simplify the Matrix p(x):x+|1+x|=-2 q(x):2|x+4|-4=x
I am unable to solve this problem.